package com.yysoft.admin.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.xkshow.plugins.page.PageList;
import com.xkshow.plugins.page.Pages;
import com.yysoft.admin.dao.GroupmanagerDao;
import com.yysoft.admin.entity.Groupmanager;
import com.yysoft.admin.entity.Master;

@Service
public class GroupmanagerService {
	
	private GroupmanagerDao groupmanagerDao;
	
	public Groupmanager get(java.io.Serializable id){
		return this.groupmanagerDao.getObject(Groupmanager.class, id);
	}
	
	public void saveOrUpdate(Groupmanager entity){
		try {
			this.groupmanagerDao.saveOrUpdate(entity);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	public List<Groupmanager> find(String hql){
		return this.groupmanagerDao.find(hql);
	}
	
	public PageList findPageList(Pages pages,String queryString){
		return this.groupmanagerDao.findPageList(queryString, pages, null, true);
	}
	public void setGroupmanagerDao(GroupmanagerDao groupmanagerDao) {
		this.groupmanagerDao = groupmanagerDao;
	}
	
	
}
